<%@ page import="org.product.Product" %>



<div class="fieldcontain ${hasErrors(bean: productInstance, field: 'productCode', 'error')} ">
	<label for="productCode">
		<g:message code="product.productCode.label" default="Product Code" />
		
	</label>
	<g:textField name="productCode" value="${productInstance?.productCode}" class="input"/>
</div>

<div class="fieldcontain ${hasErrors(bean: productInstance, field: 'productName', 'error')} ">
	<label for="productName">
		<g:message code="product.productName.label" default="Product Name" />
		
	</label>
	<g:textField name="productName" value="${productInstance?.productName}" class="input"/>
</div>

<div class="fieldcontain ${hasErrors(bean: productInstance, field: 'productSpec', 'error')} ">
	<label for="productSpec">
		<g:message code="product.productSpec.label" default="Product Spec" />
		
	</label>
	<g:textField name="productSpec" value="${productInstance?.productSpec}" class="input"/>
</div>

<div class="fieldcontain ${hasErrors(bean: productInstance, field: 'unit', 'error')} ">
	<label for="unit">
		<g:message code="product.unit.label" default="unit" />
	</label>
	<g:textField name="unit" value="${productInstance?.unit}" class="input"/>
</div>
<div class="fieldcontain ${hasErrors(bean: productInstance, field: 'productPackage', 'error')} ">
	<label for="productPackage">
		<g:message code="product.productPackage.label" default="productPackage" />
		
	</label>
	<g:textField name="productPackage" value="${productInstance?.productPackage}" class="input"/>
</div>


<div class="fieldcontain ${hasErrors(bean: productInstance, field: 'productDes', 'error')} ">
	<label for="productDes">
		<g:message code="product.productDes.label" default="Product Des" />
		
	</label>
	<g:textArea name="productDes" cols="40" rows="5" value="${productInstance?.productDes}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: productInstance, field: 'productType', 'error')} ">
	<label for="productType">
		<g:message code="product.productType.label" default="Product Type" />
		
	</label>
	<g:select name="productType" from="${org.product.ProductType.list()}"  optionKey="id" size="5" value="${productInstance?.productType?.id}" class="many-to-one" class="input"/>
</div>


